package com.linanqing.jnijavademo;

/**
 * Package:- com.linanqing.testdemo
 * Author:- xinyijianghu
 * Create Date:- 2021 3/24/21 1:49 PM
 * Description:-
 */
public class JavaJni {
    static {
        System.loadLibrary("native-lib");
    }


    public static JavaJni instance;

    public static JavaJni getInstance() {
        if(null == instance){
            instance = new JavaJni();
        }
        return instance;
    }


    /**
     * A native method that is implemented by the 'native-lib' native library,
     * which is packaged with this application.
     */
    public native String stringFromJNI();


    //Desc:-  132模式
    public native boolean find132pattern(int[] arrays);

    //Desc:-  删除升序链表中重复元素
    public native int[] deleteDuplicates(int[] arrays);
}
